package com.bang.study.nio.socket;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.stream.Stream;

/**
 * @ClassName: Test
 * @author: BANG
 * @Date: 2019/11/12 17:17
 * @Version: 1.0
 * @Modified By:
 * @Desc: TODO
 */
public class Test {

    public static void main(String[] args) throws IOException {
//        new TestNonBlockingNIO().server();


        Stream<Path> list = Files.list(Paths.get("E:\\"));
        list.forEach(path ->{
            System.out.println(path.toString());
        });

    }
}
